<template>
	<!-- 学生课程积分 -->
    <page-body>
        <view class="page">
            <view class="flex benben-position-layout flex flex-wrap align-center jf_flex_0_ibhf" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
                <view class='flex flex-wrap align-center justify-between flex-sub jf_fd0_0_ibhf'>
                    <view class='flex flex-wrap align-center jf_fd0_0_c0_ibhf' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
                        <text class='fu-iconfont2  jf_fd0_0_c0_c0_ibhf'>&#xE794;</text>
                    </view>
                    <view class='flex flex-wrap align-stretch justify-center'>
                        <text class='jf_fd0_0_c1_c0_ibhf'>课程积分</text>
                    </view>
                    <view class='flex flex-wrap align-center justify-end jf_fd0_0_c0_ibhf'>
                    </view>
                </view>
            </view>
            <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
            <!---flex布局flex布局开始-->
            <view class="flex flex-wrap align-stretch benben-flex-layout jf_flex_1_ibhf">
                <template v-for='(item,key0) in list'>
                    <view class='flex flex-wrap align-stretch jf_fd1_0_ibhf' :key='key0' @tap.stop="jumps(item)">
                        <image class='jf_fd1_0_c0_ibhf' mode="aspectFill" :src='item.cover'></image>
                        <view class='flex flex-direction flex-wrap align-stretch flex-sub'>
                            <view class='flex flex-wrap align-center'>
                                <text class='jf_fd1_0_c1_c0_c0_ibhf'>{{item.courseplan_name}}</text>
                                <text class='fu-iconfont2  jf_fd1_0_c1_c0_c1_ibhf'>&#xe7f2;</text>
                            </view>
                            <view class='flex align-center jf_fd1_0_c1_c1_ibhf'>
                                <text>课程积分：</text>
                                <text class='jf_fd1_0_c1_c1_c1_ibhf'>{{item.points}}</text>
                            </view>
                        </view>
                    </view>
                </template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
										:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
            </view>

            <!---flex布局flex布局结束-->


        </view>
    </page-body>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
    export default {
        components: {},
		mixins: [pagingList],

        data() {
            return {
                "list": [{
                    "name": "计算机网络基础",
                    "fen": "2"
                }, {
                    "name": "Python编程基础",
                    "fen": "1"
                }],
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
            };
        },
        computed: {

        },
        watch: {},
        onLoad(options) {
			this.getlists()
        },
        onUnload() {

        },
        onReady() {

        },
        onShow() {	
			
        },
        onHide() {

        },
        onResize() {

        },
        onPullDownRefresh() {

        },
        onReachBottom(e) {

        },
        onPageScroll(e) {

        },
        methods: {
			jumps(item){
				uni.navigateTo({
					url:'/pages/My/kcjf/kcjf?id='+item.course_id+'&points='+item.points+'&name='+item.courseplan_name
				})
			},
			getlists() {
				this.minixPagingListsApi = global.apiUrls.post68c9345a8e5b8;
				this.pageingListApiMethod ='post';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent ={}
				
				this.listData = [];
				this.list = this.listData;
				this.pagingListToggle();
				this.$forceUpdate()
			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
        }
    };
</script>
<style lang="scss" scoped>
    .page {
        width: 100vw;
        overflow-x: hidden;
        min-height: calc(100vh - var(--window-bottom));
        background: #F8F8F8;
        background-size: 100% auto;

        .jf_flex_1_ibhf {
            padding: 24rpx;

            .jf_fd1_0_ibhf {
                width: 100%;
                height: 194rpx;
                background: var(--benbenbgColor1);
                background-size: 100% auto;
                border-radius: 12rpx;
                padding: 16rpx;
                margin: 0rpx 0rpx 16rpx 0rpx;

                .jf_fd1_0_c0_ibhf {
                    width: 288rpx;
                    height: 162rpx;
                    border-radius: 8rpx;
                    margin: 0rpx 20rpx 0rpx 0rpx;
                }

                .jf_fd1_0_c1_c0_c0_ibhf {
                    color: #131D34;
                    font-weight: 500;
                    text-align: left;
                    font-style: normal;
                    font-size: 28rpx;
                }

                .jf_fd1_0_c1_c0_c1_ibhf {
                    margin: 0rpx 0rpx 0rpx auto;
                    font-size: 24rpx;
                }

                .jf_fd1_0_c1_c1_ibhf {
                    margin: auto 0rpx 0rpx 0rpx;
                    color: rgba(122, 123, 128, 1);
                    font-size: 24rpx;

                    .jf_fd1_0_c1_c1_c1_ibhf {
                        color: rgba(20, 94, 253, 1);
                    }
                }
            }
        }

        .jf_flex_0_ibhf {
            width: 750rpx;
            height: 88rpx;
            overflow: hidden;
            z-index: 10;
            top: 0rpx;
            background: #fff;
            background-size: 100% auto !important;

            .jf_fd0_0_ibhf {
                padding: 0rpx 32rpx 0rpx 32rpx;

                .jf_fd0_0_c1_c0_ibhf {
                    font-size: 36rpx;
                    font-weight: 700;
                    color: #333333;
                    line-height: 50rpx;
                }
            }
        }

        .jf_fd0_0_c0_ibhf {
            width: 120rpx;

            .jf_fd0_0_c0_c0_ibhf {
                font-size: 36rpx;
                color: #333;
            }
        }
    }
</style>